package cn.tedu.mapper;

import cn.tedu.entity.RoleMenusEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenusEntity> {
    List<Integer> findMenusByRoleIds(List<Integer> roleIds);

    void saveRoleMenus(Integer roleId,Integer[] menuIds);
}
